package jscinttools.scint.models;

import java.lang.Math;
import java.io.Serializable;

/**
 *  Description of the Class
 *
 *@author     marc-antoine
 *@created    16 février 2011
 */
public class CalcKnr implements Serializable
{
	private double knr_MHz = 0;


	/**
	 *  Constructor for the CalcKr object
	 */
	public CalcKnr() { }



	/**
	 *  Constructor for the CalcKnr object
	 *
	 *@param  d_K       Description of the Parameter
	 *@param  capK_us   Description of the Parameter
	 *@param  deltaE_K  Description of the Parameter
	 *@param  temp_K    Description of the Parameter
	 */
	public CalcKnr(double d_K, double capK_us, double deltaE_K, double temp_K)
	{
		knr_MHz = (1.0 + Math.exp(-1.0 * d_K / temp_K)) * (1.0 / capK_us) * Math.exp(-1.0 * deltaE_K / temp_K);
	}



	/**
	 *  Gets the knr_MHz attribute of the CalcKnr object
	 *
	 *@return    The knr_MHz value
	 */
	public double getKnr_MHz()
	{
		return knr_MHz;
	}



	/**
	 *  Sets the knr_MHz attribute of the CalcKnr object
	 *
	 *@param  knr_MHz  The new knr_us value
	 */
	public void setKnr_MHz(double knr_MHz)
	{
		this.knr_MHz = knr_MHz;
	}
}

